<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>${pageTitle}</title>
		<script type="text/javascript" src="js/base/jquery.js"></script>
		<script type="text/javascript" src="js/selectSingleSite.js"></script>
	</head>
	<body onload="divLoad()">
		<jsp:include page="head.jsp"></jsp:include>
		<div class="zhuti">
			<div class="jingediv"></div>
			<div class="lefterdiv">
				<jsp:include page="menu.jsp"></jsp:include>
			</div>
			<div class="jingediv"></div>
			<div class="righterdiv" id="right">
				<div class="sitebar">
						<div class="floatleft div25"></div>
						<div class="sitename font14 top26">
							${gcSiteInfo.sitename}
						<a href="javascript:changeFanwei('${gcSiteInfo.siteid}')" class="orange">[更改]</a>
						</div>
						<div class="date font14 top26">
							<script type="text/javascript">
								var date=new Date();
								document.write(date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate());
								if(date.getHours()<12){
									document.write("上午");
								}else
								{
									document.write("下午");
								}
							</script>
						</div>
				</div>
				<div class="widthall">
					<div class="title">
						<div class="floatleft div25"></div>
						<div class="titlename bold font24 top26">
							${pageTitle}
							<input type="hidden" id="pageTitle" value="${pageTitle}">
							<input type="hidden" id="flag" value="${flag}">
							<input type="hidden" id="defaultSelected"
								value="${defaultSelected}">
							<input type="hidden" id="selectType" value="${selectType}">
							<input type="hidden" id="validateFlag" value="${validateFlag}">
						</div>
					</div>
					<div class="whitediv">
						<div class="floatleft div25 defaultheight"></div>
						<div class="floatleft sxpp">
							<div class="widthall liubai"></div>
							<div class="widthall em30">
								<div class="floatleft sskw935 defaultheight"></div>
								<div class="floatleft sskw65">
									<div class="sxk font16" onclick="shaixuan()">
										<div class="floatleft noselect sskcontent">筛选</div>
										<img id="sxkimg" class="sxkimg floatleft" src="images/sx01.png"/>
										<div class="floatleft sxkLiubai"></div>
										<div class="cleardiv"></div>
									</div>
								</div>
							</div>
							<div  id="sxdiv" class="widthall font16">
								<div id="pingpaiDiv" class="widthall em30">
									<div class="floatleft sxtiaojian">品牌  |</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1  saixuanqu1">
										<a class="sxxiangaselect" href="javascript:zimuClikc('-1')">不限</a>&nbsp;<a
								 href="javascript:zimuClikc('a')">A</a>&nbsp;<a
								 href="javascript:zimuClikc('b')">B</a>&nbsp;<a
								 href="javascript:zimuClikc('c')">C</a>&nbsp;<a
								 href="javascript:zimuClikc('d')">D</a>&nbsp;<a
								 href="javascript:zimuClikc('e')">E</a>&nbsp;<a
								 href="javascript:zimuClikc('f')">F</a>&nbsp;<a
								 href="javascript:zimuClikc('g')">G</a>&nbsp;<a
								 href="javascript:zimuClikc('h')">H</a>&nbsp;<a
								 href="javascript:zimuClikc('i')">I</a>&nbsp;<a
								 href="javascript:zimuClikc('j')">J</a>&nbsp;<a
								 href="javascript:zimuClikc('k')">K</a>&nbsp;<a
								 href="javascript:zimuClikc('l')">L</a>&nbsp;<a
								 href="javascript:zimuClikc('m')">M</a>&nbsp;<a
								 href="javascript:zimuClikc('n')">N</a>&nbsp;<a
								 href="javascript:zimuClikc('o')">O</a>&nbsp;<a
								 href="javascript:zimuClikc('p')">P</a>&nbsp;<a
								 href="javascript:zimuClikc('q')">Q</a>&nbsp;<a
								 href="javascript:zimuClikc('r')">R</a>&nbsp;<a
								 href="javascript:zimuClikc('s')">S</a>&nbsp;<a
								 href="javascript:zimuClikc('t')">T</a>&nbsp;<a
								 href="javascript:zimuClikc('u')">U</a>&nbsp;<a
								 href="javascript:zimuClikc('v')">V</a>&nbsp;<a
								 href="javascript:zimuClikc('w')">W</a>&nbsp;<a
								 href="javascript:zimuClikc('x')">X</a>&nbsp;<a
								 href="javascript:zimuClikc('y')">Y</a>&nbsp;<a
								 href="javascript:zimuClikc('z')">Z</a>&nbsp;<a
								 href="javascript:zimuClikc('0')">其他</a>
									</div>
									<div class="floatleft ssarealiubai"></div>
									<div class="cleardiv"></div>
									<div class="floatleft sxtiaojian">&nbsp;</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1 saixuanqu7 pinpaihuanhang">
										<c:forEach items="${dp_ppList}" var="ppVo">
											<div id="brand-${ppVo.siteid}" class="floatleft em30" rel="${ppVo.area}">
												<a class="floatleft" href="javascript:ppAclick('${ppVo.siteid}')">${ppVo.sitename}</a>
												<div class="floatleft sskongge defaultheight"></div>
											</div>
										</c:forEach>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="loucengDiv" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">楼层  |</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1 saixuanqu2">
										<div class="floatleft">
											<a class="sxxiangaselect" href="javascript:lcAclick('-1')" id="-1">不限</a>
										</div>
										<div class="floatleft div25 defaultheight"></div>
										<c:forEach items="${qy_lcList}" var="lcSite">
											<div class="floatleft">
												<a id="${lcSite.siteid}"
													href="javascript:lcAclick('${lcSite.siteid}')">${lcSite.sitename}</a>
											</div>
											<div class="floatleft div25 defaultheight"></div>
										</c:forEach>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="loucengDpDiv" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">楼层  |</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1 saixuanqu3">
										<div class="floatleft">
											<a class="sxxiangaselect" href="javascript:lcDpAclick('-1')" id="-1">不限</a>
										</div>
										<div class="floatleft div25 defaultheight"></div>
										<c:forEach items="${dp_lcList}" var="lcSite">
											<div class="floatleft">
												<a id="${dpSite.siteid}"
													href="javascript:lcDpAclick('${dpSite.siteid}')">${dpSite.sitename}</a>
											</div>
											<div class="floatleft div25 defaultheight"></div>
										</c:forEach>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="diquDiv" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">地区  |</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1 saixuanqu4">
										<div class="floatleft">
											<a class="sxxiangaselect" href="javascript:diquClick('-1')" id="-1">不限</a>
										</div>
										<div class="floatleft div25 defaultheight"></div>
										<c:forEach items="${dqList}" var="lcSite">
											<div class="floatleft">
												<a id="${gcModel.dqSiteId}"
													href="javascript:diquClick('${gcModel.dqSiteId}')">${gcModel.dqSiteName}</a>
											</div>
											<div class="floatleft div25 defaultheight"></div>
										</c:forEach>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="quhuaDiv" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">区划  |</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1 saixuanqu5">
										<div class="floatleft">
											<a class="sxxiangaselect" href="javascript:quhuaClick('-1')" id="-1">不限</a>
										</div>
										<div class="floatleft div25 defaultheight"></div>
										<input type="hidden" id="guojia" value='${gc_guoList}' />
										<select id="guojiaCombo" onchange="comboChange(0);buxianxiaoshi()">
											<option value="-1">
												请选择
											</option>
										</select>
										<select id="shengCombo" onchange="comboChange(1);buxianxiaoshi()">
											<option value="-1">
												请选择
											</option>
										</select>
										<select id="shiCombo" onchange="comboChange(2);buxianxiaoshi()">
											<option value="-1">
												请选择
											</option>
										</select>
										<select id="quCombo" onchange="comboChange(3);buxianxiaoshi()">
											<option value="-1">
												请选择
											</option>
										</select>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="shangquanDiv" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">商圈  |</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang1 saixuanqu6">
										<div class="floatleft">
											<a class="sxxiangaselect" href="javascript:shangquanClick('-1')" id="-1">不限</a>
										</div>
										<div class="floatleft div25 defaultheight"></div>
										<c:forEach items="${sqList}" var="gcModel">
											<div class="floatleft">
												<a id="${gcModel.sqSiteId}" 
													href="javascript:shangquanClick('${gcModel.sqSiteId}')">${gcModel.sqSiteName}</a>
											</div>
											<div class="floatleft div25 defaultheight"></div>
										</c:forEach>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="ssgc" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">&nbsp;</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang"></div>
									<div class="floatleft ssarea">
										<div class="searchdiv floatleft">
											<div class="floatleft width5per defaultheight"></div>
											<input type="text" id="gc_gcSiteName" class="ssk" onkeyup="showx('imgx','gc_gcSiteName')" />
											<div  class="ssbtn" id="imgx"><img class="imgx" src="images/x.png" onclick="clearssk('gc_gcSiteName','imgx')" /></div>
										</div>
										<div class="sskw3 floatleft heigthall"></div>
										<div class="floatleft ssbtnover searchbtn noselect" id="divsearch" onclick="searchGc()">
											<div>搜索</div>
										</div>
										<div style="clear:both">
										</div>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="ssqy" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">&nbsp;</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang"></div>
									<div class="floatleft ssarea">
										<div class="searchdiv floatleft">
											<div class="floatleft width5per defaultheight"></div>
											<input type="text" id="qy_qySiteName" class="ssk" onkeyup="showx('imgx2','qy_qySiteName')" />
											<div  class="ssbtn" id="imgx2"><img class="imgx" src="images/x.png" onclick="clearssk('qy_qySiteName','imgx2')" /></div>
										</div>
										<div class="sskw3 floatleft heigthall"></div>
										<div class="floatleft ssbtnover searchbtn noselect" id="divsearch" onclick="searchQy()">
											<div>搜索</div>
										</div>
										<div style="clear:both">
										</div>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="sslc" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">&nbsp;</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang"></div>
									<div class="floatleft ssarea">
										<div class="searchdiv floatleft">
											<div class="floatleft width5per defaultheight"></div>
											<input type="text" id="lc_lcSiteName" class="ssk" onkeyup="showx('imgx3','lc_lcSiteName')" />
											<div  class="ssbtn" id="imgx3"><img class="imgx" src="images/x.png" onclick="clearssk('lc_lcSiteName','imgx3')" /></div>
										</div>
										<div class="sskw3 floatleft heigthall"></div>
										<div class="floatleft ssbtnover searchbtn noselect" id="divsearch" onclick="searchLc()">
											<div>搜索</div>
										</div>
										<div style="clear:both">
										</div>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
								<div class="cleardiv"></div>
								<div id="ssdp" class="widthall em30">
									<div class="floatleft sxtiaojian defaultheight">&nbsp;</div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft div25 defaultheight"></div>
									<div class="floatleft sxxiang"></div>
									<div class="floatleft ssarea">
										<div class="searchdiv floatleft">
											<div class="floatleft width5per defaultheight"></div>
											<input type="text" id="dp_dpSiteName" class="ssk" onkeyup="showx('imgx4','dp_dpSiteName')" />
											<div  class="ssbtn" id="imgx4"><img class="imgx" src="images/x.png" onclick="clearssk('dp_dpSiteName','imgx4')" /></div>
										</div>
										<div class="sskw3 floatleft heigthall"></div>
										<div class="floatleft ssbtnover searchbtn noselect" id="divsearch" onclick="searchDp()">
											<div>搜索</div>
										</div>
										<div style="clear:both">
										</div>
									</div>
									<div class="floatleft ssarealiubai"></div>
								</div>
							</div>
							<div class="widthall liubai"></div>
						</div>
						<div class="floatleft div25 defaultheight"></div>
						<div class="cleardiv"></div>
					</div>
					<div class="widthall szjiange"></div>
					
					<div id="guangchangDiv" class="whitediv font16 xzdiv">
						<div  class="widthall em30"></div>
						<div class="widthall xzcontentheight">
							<div class="floatleft defaultheight xzdivliubai"></div>
							<div id="gcResultDiv" class="floatleft scrollbar noselect xzdivvcontent">
								<c:forEach items="${gcList}" var="siteInfo">
									<div class="floatleft szqy" onclick="newCheckboxClick('${siteInfo.siteid}','selectedarea')">
										<div class="floatleft checkbox" id="${siteInfo.siteid}" title="${siteInfo.sitename}">
											<div class="szjuzhong">${siteInfo.sitename}</div>
										</div>
									</div>
								</c:forEach>
							</div>
							<div class="floatleft defaultheight xzdivliubairight"></div>
						</div>
					</div>
					<div id="dianpuDiv" class="whitediv font16 xzdiv">
						<div  class="widthall em30"></div>
						<div class="widthall xzcontentheight">
							<div class="floatleft defaultheight xzdivliubai"></div>
							<div id="dpResultDiv" class="floatleft scrollbar noselect xzdivvcontent">
								<c:forEach items="${dpList}" var="dpModel">
									<div class="floatleft szqy" onclick="newCheckboxClick('${dpModel.siteid}','selectedarea')">
										<div class="floatleft checkbox" id="${dpModel.siteid}" title="${dpModel.sitename}">
											<div class="szjuzhong">${dpModel.sitename}</div>
										</div>
									</div>
								</c:forEach>
							</div>
							<div class="floatleft defaultheight xzdivliubairight"></div>
						</div>
					</div>
					<div id="loucengXuanzeDiv" class="whitediv font16 xzdiv">
						<div  class="widthall em30"></div>
						<div class="widthall xzcontentheight">
							<div class="floatleft defaultheight xzdivliubai"></div>
							<div id="lcResultDiv" class="floatleft scrollbar noselect xzdivvcontent">
								<c:forEach items="${lcList}" var="siteAllInfo">
									<div class="floatleft szqy" onclick="newCheckboxClick('${siteAllInfo.siteid}','selectedarea')">
										<div class="floatleft checkbox" id="${siteAllInfo.siteid}" title="${siteAllInfo.sitename}">
											<div class="szjuzhong">${siteAllInfo.sitename}</div>
										</div>
									</div>
								</c:forEach>
							</div>
							<div class="floatleft defaultheight xzdivliubairight"></div>
						</div>
					</div>
					<div id="quyuDiv" class="whitediv font16 xzdiv">
						<div  class="widthall em30"></div>
						<div class="widthall xzcontentheight">
							<div class="floatleft defaultheight xzdivliubai"></div>
							<div id="qyResultDiv" class="floatleft scrollbar noselect xzdivvcontent">
								<c:forEach items="${qyPageDataVo}" var="siteAllInfo">
									<div class="floatleft szqy" onclick="newCheckboxClick('${siteAllInfo.siteid}','selectedarea')">
										<div class="floatleft checkbox" id="${siteAllInfo.siteid}" title="${siteAllInfo.sitename}">
											<div class="szjuzhong">${siteAllInfo.sitename}</div>
										</div>
									</div>
								</c:forEach>
							</div>
							<div class="floatleft defaultheight xzdivliubairight"></div>
						</div>
					</div>
					<div class="widthall szjiange"></div>
					<div class="whitediv font16 yxheight">
						<div class="floatleft div25 defaultheight"></div>
						<div class="floatleft yxcontent">
							<div class="widthall yxcontentliubai"></div>
							<div class="widthall noselect em50" style="">
								<div class="floatleft yixuan">已选  |&nbsp;</div>
								<div id="selectedarea" class="floatleft yixuancontent">
									
								</div>
								<div class="floatleft yixuanliubai">
								</div>
							</div>
							<div class="widthall em50">
								<div class="floatleft heigthall qdliubai" ></div>
								<div class="floatleft heigthall qdcontent" >
									<div class="floatleft qdbtnover qdbtn noselect" onclick="quxiao()">
										<div class="qdjuzhong">取消</div>
									</div>
									<div class="floatleft heigthall qdjiange"></div>
									<div class="floatleft qdbtnover qdbtn noselect" onclick="queding()">
										<div class="qdjuzhong">确定</div>
									</div>
								</div>
								<div class="floatleft heigthall qdliubairight"></div>
							</div>
							<div class="widthall yxcontentliubai"></div>
						</div>
						<div class="floatleft div25 defaultheight"></div>
						<div style="clear:both">
						</div>
					</div>
				</div>
				</div>
				<div style="background-color: #fff; height: 100%;display:none">
					<div style="margin-left: 50px; padding-top: 10px;">
						<input id="operType" type="hidden"
							value="${siteSelectParam.selectType}">
						<!-- 单选广场 -->
						<form action="ajaxSearchGc">
							<!-- 商圈 -->
							<input type="hidden" id="gc_sqSiteId">
							<!-- 省市区 -->
							<input type="hidden" id="gc_countryId">
							<input type="hidden" id="gc_provinceId">
							<input type="hidden" id="gc_cityId">
							<input type="hidden" id="gc_areaId">
							<!-- 地区 -->
							<input type="hidden" id="gc_dqSiteId">
							<!-- 搜索栏中广场名称 -->
							<input type="hidden" id="gc_gcInput">
						</form>
						<!-- 广场id -->
						<input type="hidden" value="${gcSiteInfo.siteid}" id="gcSiteId">
						<!-- 单选区域 -->
						<form action="ajaxSearchQy">
							<input type="hidden" id="qy_lcSiteId">
							<input type="hidden" id="qy_qyInput">
						</form>
						<!-- 单选楼层 -->
						<form action="ajaxSearchLc">
						</form>
						<!-- 单选店铺 -->
						<form action="ajaxSearchDp">
							<input type="hidden" id="dpPpSelected" value="-1">
							<input type="hidden" id="dpLcSelected" value="-1">
							<input type="hidden" id="dpDpInput" value="-1">
						</form>
						<!-- 点击更换广场提交form -->
						<form action="changeSquLoad" id="squareChangeForm" method="post">
							<!-- 广场数据类型：0，用户广场权限；1，根据店铺反查的广场权限 -->
							<input type="hidden" id="cs_gcDataType"
								name="changeGcParam.gcDataType">
							<!-- 要选择的类型：0，单选；1，多选 -->
							<input type="hidden" value="0" name="changeGcParam.selectType">
							<!-- 已经选择的广场id字符串 -->
							<input type="hidden" id="cs_gcString"
								name="changeGcParam.gcString">
							<!-- 已经选择的其他场所字符串 -->
							<input type="hidden" id="cs_siteString"
								name="changeGcParam.siteString">
							<!-- 从报表页面传过来的对象参数 -->
							<input type="hidden" name="changeGcParam.bb_selectType" value="${siteSelectParam.selectType}">
							<input type="hidden" name="changeGcParam.bb_pageFrom" value="${siteSelectParam.pageFrom}">
							<input type="hidden" name="changeGcParam.bb_controlTo" value="${siteSelectParam.controlTo}">
							<input type="hidden" name="changeGcParam.bb_gcSiteId" value="${siteSelectParam.gcSiteId}">
							<input type="hidden" name="changeGcParam.bb_qySiteId" value="${siteSelectParam.qySiteId}">
							<input type="hidden" name="changeGcParam.bb_lcSiteId" value="${siteSelectParam.lcSiteId}">
							<input type="hidden" name="changeGcParam.bb_dpSiteId" value="${siteSelectParam.dpSiteId}">
							<input type="hidden" name="changeGcParam.bb_saveParam" value="${siteSelectParam.saveParam}">
							<input type="hidden" name="changeGcParam.bb_siteString" value="${siteSelectParam.siteString}">
							<!-- 要返回的页面地址 -->
							<input type="hidden" value="siteSelect"
								name="changeGcParam.backPage" />
						</form>
						<!-- 点击确定返回 -->
						<form action="${siteSelectParam.controlTo}" id="returnForm"
							method="post">
							<input type="hidden" id="returnSiteString" name="siteId">
							<input type="hidden" id="returnControlAddress"
								value="${siteSelectParam.controlTo}">
						</form>
					</div>
				</div>
			</div>
		<div class="cleardiv"></div>
		<jsp:include page="footer.jsp"></jsp:include>
	</body>
</html>